package com.jxust.hr.controller;


import com.jxust.debate.util.CommonResult;
import com.jxust.hr.service.EmployeeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(tags="用户信息的类")
@RestController
@RequestMapping("/employee")
public class EmployeeController {

    @Resource
    EmployeeService employeeService;

    @ApiOperation("今天生日的员工信息")
    @GetMapping (value = "/selectBirthdayNow")
    public CommonResult selectBirthdayNow() {
        String message="现在返回的是 '今天生日' 员工的 '所有的信息', 未来会根据页面展示,删除不需要返回的额外信息 , limit 5";
        return CommonResult.success(message,employeeService.selectBirthdayNow());
    }

    @ApiOperation("本月生日的员工信息")
    @GetMapping (value = "/selectBirthdayMonth")
    public CommonResult selectBirthdayMonth() {
        String message="现在返回的是 '本月生日' 员工的 '所有的信息'," +
                "未来会根据页面展示,删除不需要返回的额外信息 " +
                "limit 5";
        return CommonResult.success(message,employeeService.selectBirthdayMonth());
    }


}
